package com.bite.messageQueue.common;

import java.io.Serializable;

public class BasicConsumeArguments extends BasicArguments implements Serializable {
    private String consumerTag;
    private String queueName;
    private boolean autoACK;

    public BasicConsumeArguments() {
    }

    public BasicConsumeArguments(String consumerTag, String queueName, boolean autoACK) {
        this.consumerTag = consumerTag;
        this.queueName = queueName;
        this.autoACK = autoACK;
    }

    /**
     * 获取
     * @return consumerTag
     */
    public String getConsumerTag() {
        return consumerTag;
    }

    /**
     * 设置
     * @param consumerTag
     */
    public void setConsumerTag(String consumerTag) {
        this.consumerTag = consumerTag;
    }

    /**
     * 获取
     * @return queueName
     */
    public String getQueueName() {
        return queueName;
    }

    /**
     * 设置
     * @param queueName
     */
    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }

    /**
     * 获取
     * @return autoACK
     */
    public boolean isAutoACK() {
        return autoACK;
    }

    /**
     * 设置
     * @param autoACK
     */
    public void setAutoACK(boolean autoACK) {
        this.autoACK = autoACK;
    }

    public String toString() {
        return "BasicConsumeArguments{consumerTag = " + consumerTag + ", queueName = " + queueName + ", autoACK = " + autoACK + "}";
    }
}
